import request from "../../utils/request";

// 登录
export function login(data) {
    return request({
        url: '/log/queryLogin',
        method: 'post',
        data
    })
}
// 获取流程单详情
export function queryProcessDetailsByGroup(params) {
    return request({
        url: '/tPrdProcess/queryProcessDetailsByGroup',
        method: 'get',
        params
    })
}
// 流程单下推报工单
export function insertWorkReport(data) {
    return request({
        url: '/tPrdWorkreport/insertWorkReport',
        method: 'post',
        data
    })
}
// 查询报工单详情
export function queryWorkReportDetails(params) {
    return request({
        url: '/tPrdWorkreport/queryWorkReportDetails',
        method: 'get',
        params
    })
}
// 修改报工单
export function updateWorkReport(data) {
    return request({
        url: '/tPrdWorkreport/updateWorkReport',
        method: 'put',
        data
    })
}
// 查询报工单列表
export function queryWorkReportList(data) {
    return request({
        url: '/tPrdWorkreport/queryWorkReportList',
        method: 'post',
        data
    })
}
// 花名册列表
export function querytJxStaffList(data) {
    return request({
        url: '/tJxStaff/queryReporterPersions',
        method: 'post',
        data
    })
}
// 作业指导书
export function queryImgByCode(params) {
    return request({
        url: '/tWorkshopCraftOperateImg/queryImgByCode',
        method: 'get',
        params
    })
}
// 作业指导书
export function queryProcessDetails(params) {
    return request({
        url: '/tPrdProcess/queryProcessDetails',
        method: 'get',
        params
    })
}
// 提交报工单
export function workReportSubmit(data) {
    return request({
        url: '/tPrdWorkreport/workReportSubmit',
        method: 'put',
        data
    })
}
// 反提交工艺单
export function workReportAuSubmit(data) {
    return request({
        url: '/tPrdWorkreport/workReportAuSubmit',
        method: 'put',
        data
    })
}
// 审核工艺单
export function workReportAudit(data) {
    return request({
        url: '/tPrdWorkreport/workReportAudit',
        method: 'put',
        data
    })
}
// 反审核工艺单
export function workReportUnAudit(data) {
    return request({
        url: '/tPrdWorkreport/workReportUnAudit',
        method: 'put',
        data
    })
}
// 删除报工单
export function workReportDelete(data) {
    return request({
        url: '/tPrdWorkreport/workReportDelete',
        method: 'put',
        data
    })
}
// 报工单
export function queryWorkReportDetailByProcessID(params) {
    return request({
        url: '/tPrdWorkreport/queryWorkReportDetailByProcessID',
        method: 'get',
        params
    })
}
// 查询工资
export function querySalarByEname(params) {
    return request({
        url: '/tPrdWorkreport/querySalarByEname',
        method: 'get',
        params
    })
}
// 查询数据视图
export function queryViewItem(data) {
    return request({
        url: '/tBaseDataDictionary/queryViewItem',
        method: 'post',
        data
    })
}
